<notempty name="list">
    <div class="message-table">
        <div class="file-list">
            <volist name="list" id="vo">
                <dl class='file-item file-item-file dir-item'>
                    <dt>
                        <if condition="$filetype eq 'image'">
                            <a href="javascript:parent.imagePreviewDialog('{$vo.thumb_img}');" class='item-preview'>
                        <else/>
                            <a target='_blank' href="javascript:;">
                        </if>
                            <img title="{$vo.file_size}" src='{$vo.thumb_img}'/>
                        </a>
                    </dt>
                    <dd title="{$vo.filename}">{$vo.filename}</dd>
                    <div class='oper'>
                        <a href="{:url('admin/Material/download',array('id' => $vo['id']))}" target="_blank">下载</a>
                        <a href='javascript:;' class='item-del' data-title='{$vo.file_path}' data-id='{$vo.id}' onclick='deleteFile(this)'>删除</a>
                    </div>
                    <div class="item-checkbox">
                        <input type='hidden' class='asset-id' value='{$vo.id}'/>
                        <input type='hidden' class='name' value='{$vo.filename}'/>
                        <input type='hidden' class='url' value='/{$upload_path}{$vo.file_path}'/>
                        <input type='hidden' class='filepath' value='{$vo.file_path}'/>
                    </div>
                    <!-- <input type='checkbox' name='img_select[]' value='' class='item-checkbox'/> -->
                </dl>
            </volist>
            <div class="clearfix"></div>
        </div>
    </div>
</notempty>
<!-- 分页 -->
<notempty name="page">
    <div class="pagination-row clearfix" >
        <div class="layui-col-sm4 text-left-sm">
            <!-- 显示条数 -->
            <div class="btn-group dropup marginTB-xs">
                <button type="button" class="layui-btn layui-btn-primary dropdown-toggle" data-toggle="dropdown">
                    显示条数 <span class="caret"></span>
                </button>
                <ul class="dropdown-menu" role="menu">
                    <li><a href="javascript:set_page_size(10);">10</a></li>
                    <li><a href="javascript:set_page_size(20);">20</a></li>
                    <li><a href="javascript:set_page_size(30);">30</a></li>
                    <li><a href="javascript:set_page_size(50);">50</a></li>
                    <li><a href="javascript:set_page_size(80);">80</a></li>
                    <li><a href="javascript:set_page_size(100);">100</a></li>
                </ul>
            </div>

            <!-- 删除选中项 -->
            <!-- <a class="layui-btn layui-btn-danger layui-btn-sm" href="javascript:batchDeleteFile();">
                {:lang('DELETE_SELECTED')}
            </a> -->

        </div>

        <div class="pages">{$page|default=''}</div>
    </div>
</notempty>
<!-- <div class="clearfix"></div> -->

<!-- 分页点击 -->
<script>
    function set_page_size(size){
        data.size = size;
        initData();
    }
</script>

